// dlg.txt

//mark_quest_dest(zone,x,y,layer,quest);
//	code =
//		sf(,,2);
//		toggle_quest(19,10);
//		award_party_xp(MED_QUEST_XP);
//	break;

begintalkscript;

variables;

short this_town = 4;

begintalknode;
	tag = 1;
	condition = get_sdf(this_town,1) == 0;
	text1 = "You enter [F4], the northern Haven fort in the Low Dhaga. The Ro in this province can come here to trade, make petitions, and ask for judgments from the Rokaj. A few of them are walking about.";
	text2 = "The fort is in a state of great neglect. It is operating at the most minimal, cheapest level of capability. It's not unusual for a fort to be allowed to decay in a peaceful vassal. It's expensive to keep every fort ready for war.";
	text3 = "However, in the Rokaj, such relaxation seems unwise, especially with all the raiders about.";
	text4 = "You prepare to take control of the resources taken in by the fort. Its restoration must be directed by you.";
	code =
		sf(this_town,1,1);
		sf(4,0,1);
		set_town_visibility(4,1);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(this_town,2) == 0;
	text1 = "You enter the main hall of [F4]. Surprisingly, the soldiers here made sure that it is properly equipped. Everything is clean and in good repair.";
	text2 = "There are lots of supplies. In particular, there are lots of weaponry and armor, far more than you have seen in other forts of the Ro. They are all cleaned and oiled. Much of it is new. An expensive armory, ready to outfit a considerable force.";
	text3 = "The soldiers salute you as they pass. They say that the commanders are in the northern offices.";
	code =
		sf(this_town,2,1);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(this_town,3) == 0;
	text1 = "__";
	code =
		sf(this_town,3,1);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(this_town,4) == 0;
	text1 = "__";
	code =
		sf(this_town,4,1);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(this_town,5) == 0;
	text1 = "__";
	code =
		sf(this_town,5,1);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(this_town,6) == 0;
	text1 = "__";
	code =
		sf(this_town,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(this_town,7) == 0;
	text1 = "__";
	code =
		sf(this_town,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(this_town,8) == 0;
	text1 = "__";
	code =
		sf(this_town,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(this_town,9) == 0;
	text1 = "__";
	code =
		sf(this_town,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(this_town,10) == 0;
	text1 = "__";
	code =
		sf(this_town,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(this_town,11) == 0;
	text1 = "__";
	code =
		sf(this_town,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(this_town,12) == 0;
	text1 = "__";
	code =
		sf(this_town,12,1);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 14;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 15;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 16;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 17;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 18;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

//// Chief Xurxo

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "Unlike the tidy halls outside the doors, this office is full of dust and clutter. You have to choke back a sneeze. It doesn't look like the soldiers come back here very often.";
	text2 = "A hunched-over man with gray hair sits at the desk, shuffling back and forth through a thick pile of paper. He looks up at you, slowly rises, and lets out a little cough.";
	text3 = "_My [P], [F4] is so honored to meet you. I am Chief Xurxo. I know why you are in the Low Dhaga, and all of our resources are at your disposal._ He slumps back into his chair.";
	text5 = "Chief Xurxo has tea brought for you and tries to make conversation. Whenever you ask a question, he searches through his unsorted piles of maps and reports to find the answer. His office is a neglected mess, like his fort.";
	action = INTRO;

begintalknode;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "_I need your report about the current situation._";
	text1 = "_Of course. Our fort is stable, secure, and in a good defensive position. There is still a raider presence in the Low Dhaga, but it is a local disturbance of low importance. All is well._";
	text3 = "_Of course. Our fort is stable, secure, and in a good defensive position. Now that the raiders have been destroyed, this part of the Rokaj is completely secure and under Haven's control._";
	action = DEP_ON_SDF 42 11 0;
	
begintalknode;
	state = 11;
	nextstate = 12;
	condition = 1;
	question = "_Tell me about this fort._";
	text1 = "_[F4] is Haven's only outpost in the northern Low Dhaga, serving all of this region, including the city of Etzae. It has been proved to be entirely adequate for our needs._";

begintalknode;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "_Don't we have an outpost in Etzae?_";
	text1 = "_This was deemed an unnecessary expense. Anyone with business with Haven can easily travel here._";

begintalknode;
	state = 12;
	nextstate = 11;
	condition = 1;
	question = "_Actually, everything in this fort is run-down._";
	text1 = "Xurxo lets out a little cough. _This fort's budget and capabilities are entirely in line with what is required of it. The Low Dhaga has the standard Ro chaos, but there is no sign that they can threaten Haven's presence._";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_Tell me about the raiders in the Low Dhaga._";
	text1 = "_Normally, they would not be significant. I understand that Raasa Lawita petitioned you to fight them. Such insolence! If you want to know where to hunt, the Master of Etzae can help you._";
	text3 = "_You have bravely defeated them. The Low Dhaga is sure to not be a further source of trouble for Haven._";
	action = DEP_ON_SDF 42 11 0;

begintalknode;
	state = 11;
	nextstate = 13;
	condition = 1;
	question = "_What is the status of the Rokaj as a whole?_";
	text1 = "_Please don't be disturbed by the attacks and other distractions. The Rokaj is ... normal. For the Rokaj. All is well. I have carefully followed by Governor Aato's principles._";

begintalknode;
	state = 13;
	nextstate = -1;
	condition = 1;
	question = "_What are Governor Aato's principles?_";
	text1 = "_The Rokaj is a precious vassal, but it is unstable. There is always a chance that it can rise up against us. Therefore, it is best to treat it with respect and neglect._";
	text2 = "_We collect our taxes, help when they ask, and otherwise leave them alone. This has left the Low Dhaga at a normal and tolerable level of disruption._";

begintalknode;
	state = 13;
	nextstate = 22;
	condition = gf(80,11) < 3;
	question = "_I am here to judge Governor Aato._";
	text1 = "Now Chief Xurxo looks nervous. _I am aware of that. Of course, I completely support our governor. His principles have brought Haven peace and a constant flow of tribute._";

begintalknode;
	state = 22;
	nextstate = 10;
	condition = 1;
	question = "_He seems adequate for the post._";
	text1 = "_I am glad that you agree. You will not regret it. How else can I help you?_";

begintalknode;
	state = 22;
	nextstate = 10;
	condition = 1;
	question = "_I am considering replacing him._";
	text1 = "_That is your right, but you will have a hard time replacing him. I am too close to retirement. You will find a lack of ambitious, talented young Havenites here. The Low Dhaga is not a prime destination for the ambitious._";
	text2 = "_How else can I help you?_";

begintalknode;
	state = 10;
	nextstate = 14;
	condition = 1;
	question = "_I'd like to know more about you._";
	text1 = "_I am a full citizen of Haven, though I was born in the Achaemin. I served the Empire from a young age and have had a long career. Now I will end my career and retire after a blemish-free time watching over the Low Dhaga._";

begintalknode;
	state = 14;
	nextstate = -1;
	condition = 1;
	question = "_Tell me about the Achaemin._";
	text1 = "_It is the next vassal over to the west, past about a hundred-mile stretch of wilderness. We generate less wealth for Haven then the Rokaj, but we also cause far fewer headaches._";
	
begintalknode;
	state = 14;
	nextstate = 15;
	condition = 1;
	question = "_What qualities caused Governor Aato to select you?_";
	text1 = "_I am patient. I have a strong reputation for passiveness. I am always looking for an excuse to not act._";
	text2 = "You can almost see dust settling on him as he speaks.";

begintalknode;
	state = 15;
	nextstate = 16;
	condition = 1;
	question = "_And that is a good quality?_";
	text1 = "_In the Rokaj, yes. Anything we do can anger these touchy folk. It is always best to leave them alone as much as possible. That is why things are so peaceful now._";

begintalknode;
	state = 16;
	nextstate = -1;
	condition = 1;
	question = "_You think the Rokaj is peaceful?_";
	text1 = "_Well, I know there have been some assassinations, true. But you were never in real danger, and the villains are on the way to being punished. Standard business in the Rokaj._";
	text2 = "_Some will try to trick you into seeing rebellions and grand conspiracies around every corner. Don't let yourself be fooled._";

begintalknode;
	state = 10;
	nextstate = 17;
	condition = gf(4,11) <= 1;
	question = "_I need resources to rebuild our forts._";
	text1 = "_Then it is good fortune for us both that you are here. Much of our stone comes from a Haven claim: The Stinging Oasis. The women there work very hard to make properly dressed stone for us._";
	text2 = "_However, recently they stopped sending stone, and I haven't had the soldiers to spare to send an expedition. Also, I must be careful. The oasis angers the Low Dhagans._";
	code = 
		set_flag(4,11,1);
		toggle_quest(60,1);
	break;

begintalknode;
	state = 17;
	nextstate = -1;
	condition = 1;
	question = "_Where is the Oasis?_";
	text1 = "_It is not far to the southeast. If you explore in that direction, travel with care. There are more raiders than usual that way. That is why I avoid sending soldiers there._";

begintalknode;
	state = 17;
	nextstate = -1;
	condition = 1;
	question = "_Why hasn't the Oasis been sending stone?_";
	text1 = "_We have had no messages. However, it is not an unusual event. The works there have frequent disruptions. Some of the locals are very angry about the place._";

begintalknode;
	state = 17;
	nextstate = 18;
	condition = 1;
	question = "_Why does the Oasis anger the Dhagans?_";
	text1 = "_It is a refuge. You see, the Low Dhagans tend to keep an unusual level of control over the women. Not all of the ladies here care for this. Thus, Haven declared the Stinging Oasis a refuge. All women can flee there for a time, and we protect them._";
	text2 = "_In return, while they are there, they can put that admirable Dhagan skill at stonework at our disposal. That is how they pay their rent._";

begintalknode;
	state = 18;
	nextstate = -1;
	condition = 1;
	question = "_Why is this refuge necessary?_";
	text1 = "_Ahhhh ... The Low Dhaga can be a very hard place for a woman with a ... strong spirit. Some women here flee to other provinces to build new lives. Others want to remain in this land for their own reasons. They can hide at the oasis._";

begintalknode;
	state = 18;
	nextstate = -1;
	condition = 1;
	question = "_Did you create this refuge?_";
	text1 = "_No. It predates Governor Aato's rule. The oasis is exactly the sort of provocation our wise Governor tries to avoid._";

begintalknode;
	state = 10;
	nextstate = 19;
	condition = gf(4,11) == 1 && gf(37,11) > 0;
	question = "_I have removed a witch from the Stinging Oasis. It will send stone again._";
	text1 = "_Yes. A brave lady runner from the oasis came with the news. I would like to put their stone under your control. However, the women ask to be allowed to keep a larger share of it, to sell and provide for them._";
	text2 = "_This will only give them more freedom and influence. It will anger the Ro and give you less stone. I'd advise against it. The Ro would be pleased if you just cleaned the whole place out. I am obligated to mention these options._";

begintalknode;
	state = 19;
	nextstate = 10;
	condition = 1;
	question = "_Everything should continue as before. They will send all of their stone._";
	text1 = "_Of course. I will send a polite denial of their request to the women of the oasis. Their stone is now at your disposal. Thank you again for resolving this sticky problem for us. I'm sure that all parties are now content._";
	code = 
		set_flag(4,11,2);
		toggle_quest(60,10);
		award_party_xp(BIG_QUEST_XP);

		activate_mine_resource(30);
	
		violence(2);
	break;		

begintalknode;
	state = 19;
	nextstate = 10;
	condition = 1;
	question = "_The Oasis can send us less stone and keep some for their own purposes._";
	text1 = "Chief Xurxo lets out a nervous little cough. _This is not how Governor Aato would maintain peace, but you are the [P]. The women of the oasis will now have more wealth. They will be grateful. As for the Ro ..._ He shrugs. _They will be angry, but they are still the vassals._";
	code = 
		set_flag(4,11,3);
		toggle_quest(60,10);
		award_party_xp(BIG_QUEST_XP);

		activate_mine_resource(31);
	
		inc_flag(80,4,1);
		ro_faction(-5);
		violence(-3);
	break;		

begintalknode;
	state = 19;
	nextstate = 10;
	condition = 1;
	question = "_The Oasis is angering the Ro. Clear the women out and put in other workers._";
	text1 = "This actually brings a smile to Chief Xurxo's face. _This is more than I expected, [P]. Without the oasis there, the Rokaj will be far less angry with us. Managing them will be far easier, and, honestly, maintaining it was of no benefit to Haven._";
	text2 = "_I will immediately send more workers out there. Don't worry. The flow of stone will not be interrupted._";
	code = 
		set_flag(4,11,2);
		toggle_quest(60,10);
		award_party_xp(BIG_QUEST_XP);

		activate_mine_resource(30);
	
		inc_flag(80,4,-1);
		ro_faction(3);
		violence(3);
	break;		

begintalknode;
	state = 10;
	nextstate = -1;
	condition = gf(4,11) > 1;
	question = "_I could use more resources._";
	text1 = "_Then I suggest you go to Etzae. The flow of fine stone from the upward Dhaga passes through there. I'm sure you will find good opportunities._";

// Captain Azucena

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = "There is a captain of the Haven army waiting for you in the center of this office. The chamber itself is sparse. Most of the maps and equipment are in other rooms, except for a thick binder of maps on her desk. This is a quiet, calm room where she can meet and plan.";
	text2 = "She stands up straight and gives you a salute. You note that her robes are clean and pressed, with her captain's insignia on the shoulders.";
	text3 = "She says, _Welcome to [F4], [P]. I am Captain Azucena. I am honored by your visit and eager to tell you what we have been doing here._";
	text5 = "Captain Azucena keeps a small fire lit in the brazier while you are here. She is eager to discuss military matters with you while sitting and sipping Ro tea.";
	text6 = "Her constant, tense energy makes her out of place among Haven's soldiers in this vassal state.";
	action = INTRO;

begintalknode;
	state = 40;
	nextstate = 41;
	condition = 1;
	question = "_You have a lot of maps on your desk._";
	text1 = "She nods. _The Ro has very complicated topography. Many maps are required for operations. You have probably guessed from what you saw in the entry hall: We've been doing a lot of work here._";
	text2 = "_We need to act up here, away from the governor's gaze._";

begintalknode;
	state = 41;
	nextstate = -1;
	condition = 1;
	question = "_What can you tell me about this region?_";
	text1 = "_As you have seen, the Low Dhaga is full of raiders. Whatever you might have heard, this is no ordinary force. They are numerous and organized._";
	text2 = "_You scored a great victory against them, but their organizers and suppliers are still out there._";
	text3 = "_Of course, if ordered, I could give opinions about Governor Aato._";
	code =
		if (gf(42,11) == 0)
			rs(2);
		if (gf(4,12) > 0)
			rs(3);
	break;
	
begintalknode;
	state = 41;
	nextstate = 42;
	condition = 1;
	question = "_You are avoiding the governor's gaze?_";
	text1 = "She decides to pretend that she misspoke. _I'm sorry. I would never try to disobey my governor. I mean, I was trying to improve Haven's position without causing the governor difficulties or worry._ A very high quality and productive lie.";
	text2 = "_It is also easier to speak with the Ro up here. Farther upward, they are more likely to be frank._";
	
begintalknode;
	state = 42;
	nextstate = -1;
	condition = 1;
	question = "_You have contacts with the local Ro?_";
	text1 = "_I have been building a network. Figuring out what clans properly value Haven and which ones foolishly want to expel us. If the seas get choppy, we will need lists of the loyal._";

begintalknode;
	state = 42;
	nextstate = 40;
	condition = gf(4,12) == 0;
	question = "_If you are trying to jump the chain of command, don't._";
	text1 = "_Of course, [P]. I will obey my governor completely, whenever he bothers to send me an order._";
	code =
		sf(4,12,1);
		queen_faction(2);
	break;

begintalknode;
	state = 42;
	nextstate = 40;
	condition = gf(4,12) == 0;
	question = "_I won't hear criticism of the governor. Be silent._";
	text1 = "_And I would never dream of giving any, [P]. I am obedient. I came here for a purpose, and I will do it as well as I can, within all the rules._";
	code =
		sf(4,12,1);
		queen_faction(-2);
	break;

begintalknode;
	state = 42;
	nextstate = 51;
	condition = gf(4,12) == 0;
	question = "_You may speak freely._";
	text1 = "_Governor Aato is passive. In some vassals, this works. Here, the Ro respect decisiveness and courage. They will push us constantly. Sometimes, we need to push back, or they will think us weak. Removable._";
	text2 = "_Alas, I think it is too late to correct our mistakes. We must be prepared for whatever the Rokaj is planning._";
	code =
		queen_faction(2);
		sf(4,12,1);
	break;

begintalknode;
	state = 51;
	nextstate = 40;
	condition = gf(80,11) < 3;
	question = "_I am here to judge Governor Aato._";
	text1 = "_All are aware of that. It may be time. However, to replace him, you need a superior candidate to replace him. Someone of higher status than me, competent, brave, and ambitious._";
	text2 = "_Nobody like that has come here from Haven in a long, long time._";

begintalknode;
	state = 51;
	nextstate = 40;
	condition = gf(80,11) >= 3;
	question = "_I have already judged Governor Aato._";
	text1 = "_Then I thank you for your time, and I will do all I can to prepare for the consequences of your decisions._";
	
begintalknode;
	state = 40;
	nextstate = 43;
	condition = 1;
	question = "_Tell me about the raiders._";
	text1 = "_You have seen yourself. How numerous they are. How brave and determined. There are lots of them. They are persistent and willing to die. Most importantly, they don't seem interested in wealth._";
	text2 = "_They are a problem. I thought I could do something to solve it._";
	text3 = "_I don't think your victory here will solve the problem._";
	code =
		if (gf(42,11) == 0)
			rs(3);
	break;

begintalknode;
	state = 43;
	nextstate = -1;
	condition = 1;
	question = "_You asked to be transferred here?_";
	text1 = "_I made the request of General Angach, back in Laskara. He agreed, and he gave me a great deal of resources and freedom. I came here. This seems the place where will and steel can do the most good._";

begintalknode;
	state = 43;
	nextstate = -1;
	condition = 1;
	question = "_I met raiders in the Gentle Coast._";
	text1 = "_Yes, and they tried to kill you. A serious attempt on the life of Sutter and you, deep in supposedly peaceful territory. It should have gotten much more attention than it did._";

begintalknode;
	state = 43;
	nextstate = -1;
	condition = gf(80,22) > 0;
	question = "_Ever heard of someone called The Wolf?_";
	text1 = "She thinks about this. _No. Then again, while we have fought brigands, we have never managed to capture any. They are also good at not leaving written records._";

begintalknode;
	state = 43;
	nextstate = 44;
	condition = gf(42,11) == 0;
	question = "_Where are the raiders hiding?_";
	text1 = "_They seem to be most numerous in and around Ouachita Mountain, to the north._";
	text2 = "_They also constantly occupy and then flee the ruins of Fort Cariaris, to the south._";

begintalknode;
	state = 44;
	nextstate = -1;
	condition = 1;
	question = "_What is Ouachita Mountain?_";
	text1 = "_One of the larger mountains of the region. It is shot through with many mining tunnels. An excellent place for brigands to hide. Anyone following them into the tunnels is likely to die from any of a thousand sorts of ambush._";

begintalknode;
	state = 44;
	nextstate = -1;
	condition = 1;
	question = "_Why haven't they been destroyed?_";
	text1 = "_They move around quickly, they hide in tunnels, and they are clever. When we chase them into the mine shafts, we might kill a few, true. Then they spring their traps, bury our warriors, and flee._";
	text2 = "_Actually defeating them will require both strength and cunning. Skilled hunters, in small groups. I can see why Raasa Lawita gave you the petition._";

begintalknode;
	state = 40;
	nextstate = 45;
	condition = gf(4,13) <= 1;
	question = "_I have come to fight the raiders._";
	text1 = "_I am pleased. I will be careful to not interfere with your efforts. There is much to be done. There is a small offshoot band of brigands I have been hunting. I thought you would be interested._";

begintalknode;
	state = 45;
	nextstate = 46;
	condition = 1;
	question = "_Go on._";
	text1 = "_Many of my soldiers are new and unpracticed. They are Havenites, but green. I have had them raid the Larokon Ruins. There are plenty of raiders hiding there._";
	text2 = "_However, our soft targets have been reinforced. I could use more help rooting them out of their ruin. There would be value in controlling that location._";
	code = 
		set_flag(4,13,1);
		toggle_quest(61,1);
	break;

begintalknode;
	state = 46;
	nextstate = -1;
	condition = 1;
	question = "_Where are the Larokon Ruins?_";
	text1 = "_To the northwest, at the base of the mountains separating us from the High Litha. It's an old ruin, one of the many fortresses shattered during the Great Uprising._";

begintalknode;
	state = 46;
	nextstate = -1;
	condition = 1;
	question = "_What would you have done with these brigands if you defeated them?_";
	text1 = "_I'd have taken them to the prisons in Etzae. Master Aurichalcum and I would have questioned them together. Then, execution. They tried to kill a [P]. The time for Governor Aato's softness and indecision has passed._";

begintalknode;
	state = 40;
	nextstate = 47;
	condition = gf(4,13) == 1 && gf(40,11) > 0;
	question = "_The brigands hiding in the Larokon Ruins are no more._";
	text1 = "You tell Azucena the tale. Some of her soldiers come in to listen. It turns out to be quite an enjoyable story. _If I may be so bold, let me share with you some of the supplies I reserved for raiding that fort._ You are brought a scroll and a ceramic flask.";
	text2 = "_Did you get any useful information?_";
	code = 
		set_flag(4,13,2);
		toggle_quest(61,3);
		award_party_xp(BIG_QUEST_XP);
		reward_give(407);
		reward_give(340);

	break;		

begintalknode;
	state = 47;
	nextstate = -1;
	condition = 1;
	question = "_The brigands were not cooperative in that regard._";
	text1 = "_Hmmm. Perhaps they were clever. They might have also been an independent operation, not attached to any conspiracy._";
	text2 = "_Thank you, [P]. The Low Dhaga is far more secure now. The Ro will appreciate it. And ... Hmmm. There may be more benefit to Haven in the Larokon Ruins._";

begintalknode;
	state = 40;
	nextstate = 48;
	condition = gf(4,13) == 2 || gf(4,13) == 3;
	question = "_There is something useful that can be done in the Larokon Ruins?_";
	text1 = "_The ruins used to contain a passage between the High Litha and the Low Dhaga. If the passage could be found and opened, it could be very useful._";
	code = 
		set_flag(4,13,3);
		toggle_quest(61,4);
	break;

begintalknode;
	state = 48;
	nextstate = -1;
	condition = 1;
	question = "_How can this passage be opened?_";
	text1 = "_One would have to enter the Larokon Ruins from the High Lithan side to open it. This is impossible for me. Someone who can freely travel through the entire Rokaj might do it, though._";

begintalknode;
	state = 48;
	nextstate = -1;
	condition = 1;
	question = "_Why are you so interested in this passage?_";
	text1 = "_If Haven controlled a hidden way into the High Litha, it could be valuable if there was a rebellion. Speedy routes around the Rokaj lead to effective attacks._";

begintalknode;
	state = 48;
	nextstate = -1;
	condition = 1;
	question = "_You sound like you are thinking about a lot more than just brigands._";
	text1 = "_I am. I will not hide it. Haven should always be prepared for a Rokaj rebellion. If we are the only ones who haven't forgotten that, it is our responsibility to act._";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = gf(4,13) == 3 && gf(40,12) > 0;
	question = "_The passage through the Larokon Ruins is open._";
	text1 = "You carefully describe to the captain how a small force could now sneak into the High Litha. She takes notes and adds another map to her pile. Thank you, [P]. I am grateful for your effort, and I will make sure that my superiors know what you did for us._";
	text2 = "_By the way, we have started digging some stone out of the lower part of the ruins. I will make sure that you are given control of it._";
	code = 
		set_flag(4,13,4);
		toggle_quest(61,10);
		award_party_xp(MED_QUEST_XP);
		queen_faction(3);

		activate_mine_resource(32);
	break;		

begintalknode;
	state = 40;
	nextstate = 50;
	condition = gf(4,13) == 4;
	question = "_Now that you have the path through the Larokon Ruins, what will you do with it?_";
	text1 = "_Nothing. Yet. If there is a full rebellion, I am allowed to take independent action._";

begintalknode;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "_Independent action?_";
	text1 = "_I have been given the freedom to act as I wish for the good of Haven, without bothering the governor or the chiefs. If the Rokaj causes trouble, we'll cause trouble back._";

	
//

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = "There is a young Dhagan woman sitting nervously in this library. It's an unusual sight. You only rarely see Dhagan women. They tend to be kept hidden in their clan houses.";
	text2 = "When you approach, she rises and bows. Then, unsure if that is the right gesture, she curtsies. Then she bows again. Then one more time for safety. Then she wrings her hands and stammers, _Hello, [P] of the Rokaj. And Haven. Cousin, I am Filome._ Cousin?";
	text5 = "Filome stands while she talks to you. She isn't sure if she's allowed to sit in your presence. She shyly waits for you to speak.";
	action = INTRO;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = gf(4,14) == 0;
	question = "_What brings you to [F4], Filome?_";
	text1 = "_I came to ... to make a petition. To ask for help, cousin._";
	code =
		if (gf(4,14) == 0)
			sf(4,14,1);
	break;
	
begintalknode;
	state = 70;
	nextstate = -1;
	condition = gf(4,14) == 0;
	question = "_I am too busy to speak with you._";
	text1 = "_Of course. Of course you are._ She steps aside. _I can talk to the chief, when he has time for me. I'm sorry for bothering you._";
	action = END_TALK;
	code =
		if (gf(4,14) == 0)
			sf(4,14,1);
	break;
	
begintalknode;
	state = 70;
	nextstate = 71;
	condition = gf(4,14) > 0;
	question = "_You called me cousin?_";
	text1 = "_I ... You are Ro, yes? Your father came from the Low Dhaga? Then you are part of us. But ... I am sorry for being so familiar. I came to ask for help, but I shouldn't bother you._";
	code =
		if (gf(4,14) == 0)
			sf(4,14,1);
	break;

begintalknode;
	state = 71;
	nextstate = -1;
	condition = 1;
	question = "_That is what brought you to see me?_";
	text1 = "_No. I didn't know you would be here. But ... knowing our princes and princesses have Rokaj blood in them is very precious. To some of us. The loyal ones._";

begintalknode;
	state = 71;
	nextstate = -1;
	condition = 1;
	question = "_Do you think we are related?_";
	text1 = "_Oh, no! We both spring from the soil of the Low Dhaga, but we are not ... closely related. I think. Sometimes, it gets very hard to tell._";

begintalknode;
	state = 71;
	nextstate = 72;
	condition = 1;
	question = "_What do you know of my father?_";
	text1 = "_Everyone in the Low Dhaga knows the name of Consort Darmal. He made the Rokaj the prize of Haven ... for a time. Then he died. His clan was powerful once._";

begintalknode;
	state = 72;
	nextstate = -1;
	condition = 1;
	question = "_Do you know anything about my clan?_";
	text1 = "_Only that they thought it wise to settle new land when your father died. They went into the wilds to the east, with permission to start a new province for the Ro._";
	text2 = "_I don't know what happened to them._";


begintalknode;
	state = 70;
	nextstate = 73;
	condition = gf(4,14) == 1;
	question = "_Why do you need Haven's help?_";
	text1 = "She starts to talk, but then she chokes a bit. She wasn't prepared to speak. You give her time to regain her composure. _I am ... I ... I have fled my clan._";
	text2 = "_Life for women in the Low Dhaga is ... It can be hard. I have come here to make a petition._";
	
begintalknode;
	state = 73;
	nextstate = -1;
	condition = 1;
	question = "_What would your life be if you returned home?_";
	text1 = "_They have planned a marriage for me. A life in hiding. Many of my sisters and cousins, my cousins by blood, they are happy with their fate. I do not want to be bound to this man. So I fled._";

begintalknode;
	state = 73;
	nextstate = -1;
	condition = 1;
	question = "_Can Haven change the lot of women in the Low Dhaga?_";
	text1 = "The question surprises her. She gives it long thought. Then she shakes her head. _No. The Rokaj are independent and stubborn. I can't afford foolish dreams. I know that, if Haven tried to force us to change, it could only cause ... more rebellion than you are getting._";

begintalknode;
	state = 73;
	nextstate = 74;
	condition = gf(4,14) == 1;
	question = "_What is your petition?_";
	text1 = "_I wish to leave the Low Dhaga. I want to serve Haven. Somewhere else. I am asking for a position in one of your forts. I can cook. Clean. Repair. I learn fast. I am literate._";
	text2 = "She sets on the table an unsigned order and a pouch. _If you sign this, it says I am worthy to work in one of your forts. The pouch contains a precious gift._";

begintalknode;
	state = 74;
	nextstate = 75;
	condition = 1;
	question = "_A precious gift?_";
	text1 = "_When I left my clan, I took payment for all the work I have done. It is full of valuable crystals. I brought it to show my respect and get consideration._";
	text2 = "_Sometimes, Dhagans get angry when you help us women. We are grateful for the mercy of Haven._";

begintalknode;
	state = 75;
	nextstate = -1;
	condition = 1;
	question = "_You offer a bribe._";
	text1 = "Filome puts her hand over her mouth, shocked. _This is expected, isn't it? I heard this was required when dealing with ... with Haven. Like Governor Yvette always requires a gift._";

begintalknode;
	state = 75;
	nextstate = -1;
	condition = 1;
	question = "_I need time to think about it._";
	text1 = "_Oh. I will stay here as long as they allow me to. The Chief doesn't want to see me. I'm sorry for bothering you._";
	action = END_TALK;
	
begintalknode;
	state = 75;
	nextstate = -1;
	condition = 1;
	question = "_You may have a post._ Sign the paper. Take the bribe.";
	text1 = "You read and then sign the paper. Filome is now eligible to work in Haven's forts. _Thank you so much, [P]. I will always be loyal to Haven._ She leaves the pouch on the table for you.";
	action = END_TALK;
	code =
		sf(4,14,2);
		ro_faction(-5);
		queen_faction(-3);
		violence(-2);
		change_coins(25,1);
		change_crafting(1,0,0,0,0);
	break;

begintalknode;
	state = 75;
	nextstate = -1;
	condition = 1;
	question = "_You may have a post, but I don't need your bribe._ Sign the paper.";
	text1 = "You read and then sign the paper. Filome is now eligible to work in Haven's forts. _Thank you so much, [P]. I will always be loyal to Haven._ She takes the pouch.";
	action = END_TALK;
	code =
		sf(4,14,2);
		ro_faction(-5);
		queen_faction(-1);
		violence(-2);
	break;

begintalknode;
	state = 75;
	nextstate = -1;
	condition = 1;
	question = "_I will not anger the Ro. Your request is denied._";
	text1 = "_Oh. I am ... grateful for your time. I will look for a place ... to hide? To hide. Perhaps the Oasis. Perhaps I will travel the Pilgrimage Road. I must take some time to decide._ Her calm reserve is admirable. She turns away.";
	action = END_TALK;
	code =
		sf(4,14,3);
		ro_faction(1);
		queen_faction(3);
		violence(1);
	break;

begintalknode;
	state = 75;
	nextstate = -1;
	condition = 1;
	question = "_Bribing me is illegal. Leave before I have you punished._";
	text1 = "_Oh. I am sorry. Please don't punish me. I will look for a place ... to hide? To hide. Perhaps the Oasis. Perhaps I will travel the Pilgrimage Road. I must take some time to decide._ Her calm reserve is admirable. She grabs her pouch and turns away.";
	text2 = "Then she bows three times, runs downstairs, looking for a place to hide and build her new life.";
	action = END_TALK;
	code =
		erase_char(402);
		sf(4,14,4);
		ro_faction(1);
		queen_faction(3);
		violence(3);
	break;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = gf(4,14) == 2;
	question = "_Have you begun your new job yet?_";
	text1 = "_I am deciding where to go. Stay close to home? Go to the Gentle Coast? I've heard that the Kranas is beautiful. I've never ... made choices like this before. I will decide soon._";
	text2 = "You leave her to plan her journey.";
	action = END_TALK;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = gf(4,14) == 3;
	question = "_Where will you go now?_";
	text1 = "_I don't know. I think I will flee before my clan finds me. Perhaps travel the Pilgrimage Road. Go to the Gentle Coast. That is a ... safer place._ You leave her to plan her journey.";
	action = END_TALK;


//

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
		
//

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
				